import request from '@/utils/request'
function getUrl(url) { return '/api/' + url }

//添加岗位信息
export function addInPost(data) {
    return request({
        url: getUrl("sys/post/addInPost"),
        method: 'post',
        data
    })
}

//更新岗位信息
export function updateInPost(data) {
    return request({
        url: getUrl("sys/post/updateInPost"),
        method: 'post',
        data
    })
}


export function deleteInPost(data) {
    return request({
        url: getUrl("sys/post/deleteInPost"),
        method: 'post',
        data
    })
}


//获取建筑信息数据 getInPostVo
export function getInPostVo(data) {
    return request({
        url: getUrl("sys/post/getInPostVo"),
        method: 'post',
        data
    })
}


//获取所有建筑信息数据列表 getInPostList
export function getPostList(data) {
    return request({
        url: getUrl("sys/post/getPostList"),
        method: 'post',
        data
    })
}